Auto merge of #3721 - alexcrichton:dupe-doctest, r=brson
authorbors <bors@rust-lang.org>
Wed, 1 Mar 2017 15:05:45 +0000 (15:05 +0000)
committerbors <bors@rust-lang.org>
Wed, 1 Mar 2017 15:05:45 +0000 (15:05 +0000)
commit994ed063a6ce4a2d0d673ebf5183e33644480d14
treef3d9937001191bd1af2b4af9fa6cc16f793bf2c6
parentd17b61aa5a2ca790f268a043bffdb0ffb04f0ec7
parent4ecef028e1be527d9ef5db281dd40c8e5f650f43
Auto merge of #3721 - alexcrichton:dupe-doctest, r=brson

Fix deps with `cargo test --all` and doctests

This commit fixes `cargo test --all` with the way we ship libraries to `rustdoc
--test`. I'm... not entirely sure what the previous incarnation was doing but
the current organization is to interpret `compilation.libraries` as a mapping
from a package to the list of crates it needs to link to test.

This updates the support in `cargo_rustc/mod.rs` to create the map appropriately
and tweaks the loop in `cargo_test.rs` as well.

Closes rust-lang/rust#39879